﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="ReporteFormato5.aspx.vb" Inherits="Devida_ReporteFormato5" Theme="Yahoo-Ocean" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label id="lblTitulo" runat="server" ForeColor="White" Font-Size="Large" Font-Bold="true" Width="600px" >Desagregado mensual de avance del Programa Presupuestal</asp:Label>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:UpdatePanel ID="upPrueba" runat="server" >            
<ContentTemplate>
<div style="width:900px; text-align:left;">
    <table style="width: 900px; padding-bottom: 0px; padding-top: 5px;">
        <tr class="fondoBlanco" align="left">
                <td style="padding-left: 5px; width:80px;">
                    <asp:Label ID="label16" runat="server" CssClass="label">PPER :</asp:Label>
                </td>
                <td style="padding-left: 5px; width:430px;">
                    <asp:DropDownList ID="ddlPPER" runat="server" AutoPostBack="false" CssClass="ddl" Width="400px"></asp:DropDownList>                
                </td>
                <td style="padding-left: 5px; width:85px;">
                    <asp:Label ID="label17" runat="server" CssClass="label">Periodo :</asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlPeriodo" runat="server" AutoPostBack="false" CssClass="ddl" Width="120px"></asp:DropDownList>                
                </td>
            </tr>
        <tr>
            <td colspan="4" style="text-align: left;">
                <asp:ImageButton ID="btnGenerar" runat="server" ToolTip="Generar" ImageUrl="~/Imagenes/btnGenerar.png" Style="height: 23px" ValidationGroup="miPrueba" />
            </td>
        </tr>
    </table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="Server">  <%--AssociatedUpdatePanelID="upPrueba" DisplayAfter="1">--%>
    <progresstemplate>       
        <img alt="Cargando" border="0" height="25" src="../Imagenes/ajax-loader.gif" />
        <strong style="height: 15px"> 
        <span style="font-size: 16pt; color: #f611a4; font-family: Verdana">
            Generando reporte... Por favor espere.
        </span>
        </strong>
    </progresstemplate>
</asp:UpdateProgress>

    <asp:UpdatePanel ID="upReporte" runat="server">
        <ContentTemplate>
            <div id="divReporte" runat="server" style="width: 900px; height: 480px; overflow: scroll; border: 1px solid #309eee; text-align: center; display: none;">
                <div style="width: 1500px; padding-left: -2px; padding-bottom: -1px">
                    <table style="width: 1495px; border: 1px solid #6489a4; background-color: #ebebeb; color: #000000; font-weight: bold; font-size: 24px;" cellpadding="0px" cellspacing="0px">
                        <tr style="font-weight: bold;">
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 141px; font-weight: bold;">
                                <asp:Label ID="Label1" runat="server" Text="Producto" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 205px">
                                <asp:Label ID="Label2" runat="server" Text="Entidades Ejecutoras" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 400px">
                                <asp:Label ID="Label3" runat="server" Text="Nombre de la Actividad o Proyecto" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td colspan="2" style="border-right: 1px solid #6489a4; border-bottom: 1px solid #6489a4">
                                <asp:Label ID="Label4" runat="server" Text="Monto" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 93px">
                                <asp:Label ID="Label5" runat="server" Text="Monto </br> Transferido" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td colspan="2" style="border-right: 1px solid #6489a4; border-bottom: 1px solid #6489a4;">
                                <asp:Label ID="Label6" runat="server" Text="Ejecución Financiera" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 91px">
                                <asp:Label ID="Label7" runat="server" Text="% Ejecución </br> Física (IAFG)" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2">
                                <asp:Label ID="Label8" runat="server" Text="Observaciones" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                        </tr>
                        <tr style="font-weight: bold;">
                            <td style="border-right: 1px solid #6489a4; width: 91px">
                                <asp:Label ID="Label9" runat="server" Text="Total S/." Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 92px">
                                <asp:Label ID="Label10" runat="server" Text="Programado </br> Acumulado </br> (1)" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 91px">
                                <asp:Label ID="Label11" runat="server" Text="Monto S/. (2)" Style="font-weight: bold; font-size: 12px;"></asp:Label>
                            </td>
                            <td style="border-right: 1px solid #6489a4; width: 92px">
                                <asp:Label ID="Label12" runat="server" Text="% </br> (3)=(2)/(1)" Style="font-weight: bold; font-size: 12px;"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
                <table style="width: 1497px; border: 1px solid #6489a4; text-align: center; padding-top: -1px" cellpadding="0px" cellspacing="0px">
                    <tr>
                        <td style="border-right: 1px solid #6489a4; background-color: #ebebeb; width: 750px">
                            <asp:Label ID="Label15" runat="server" Text="TOTAL PPER" Style="font-weight: bold; font-size: 12px;"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblTotalPPER" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 92px; text-align: right;">
                            <asp:Label ID="lblProgramadoPPER" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 93px; text-align: right;">
                            <asp:Label ID="lblTransferidoPPERs" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblEjecutadoPPER" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 92px; text-align: right;">
                            <asp:Label ID="lblPorcPPER" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblIAFG_PPER" runat="server"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                <table style="width: 1497px; border: 1px solid #6489a4; text-align: center; padding-top: -1px" cellpadding="0px" cellspacing="0px">
                    <tr>
                        <td style="border-right: 1px solid #6489a4; background-color: #ebebeb; width: 750px">
                            <asp:Label ID="Label13" runat="server" Text="TOTAL PRODUCTOS (ACTIVIDADES)" Style="font-weight: bold; font-size: 12px;"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblTotalProductos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 92px; text-align: right;">
                            <asp:Label ID="lblProgramadoProductos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 93px; text-align: right;">
                            <asp:Label ID="lblTransferidoProductos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblEjecutadoProductos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 92px; text-align: right;">
                            <asp:Label ID="lblPorcProductos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblIAFG_Productos" runat="server"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                <table style="width: 1497px; border: 1px solid #6489a4; text-align: center; padding-top: -1px" cellpadding="0px" cellspacing="0px">
                    <tr>
                        <td style="border-right: 1px solid #6489a4; background-color: #ebebeb; width: 750px">
                            <asp:Label ID="Label14" runat="server" Text="TOTAL PRODYETOS" Style="font-weight: bold; font-size: 12px;"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblTotalProyectos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 92px; text-align: right;">
                            <asp:Label ID="lblProgramadoProyectos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 93px; text-align: right;">
                            <asp:Label ID="lblTransferidoProyectos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblEjecutadoProyectos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 92px; text-align: right;">
                            <asp:Label ID="lblPorcProyectos" runat="server"></asp:Label>
                        </td>
                        <td style="border-right: 1px solid #6489a4; width: 91px; text-align: right;">
                            <asp:Label ID="lblIAFG_Proyectos" runat="server"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                <table style="width: 1500px; text-align: center; padding-top: -1px; border-collapse: collapse; border-spacing: 0px;">
                    <tr>
                        <td>
                            <asp:GridView ID="gvTipo" runat="server" AutoGenerateColumns="False" Width="1500px" CellSpacing="-1" ShowHeader="False" Style="padding-top: -2px">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemStyle Width="150px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblTipo" runat="server" Text='<%# Eval("DESCRIPCION")%>' Style="font-size: 12px;" Font-Bold="True"></asp:Label>
                                            <asp:HiddenField ID="hfTipo" runat="server" Value='<%# Eval("ID_TIPO")%>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <table runat="server" cellpadding="0" cellspacing="0" style="width: 1350px; padding: -1px -1px -1px -1px; margin: -1px -1px -1px -1px">
                                                <tr>
                                                    <td style="width: 604px; background-color: #ebebeb; border-right-style: none;">
                                                        <asp:Label ID="lblTotal" runat="server" Style="font-weight: bold; font-size: 12px; border-right-style: none;"></asp:Label>
                                                    </td>
                                                    <td style="width: 92px; text-align: right; border-right-style: none;">
                                                        <asp:Label ID="lblTotalProducto" runat="server"></asp:Label>
                                                    </td>
                                                    <td style="width: 92px; text-align: right; border-right-style: none;">
                                                        <asp:Label ID="lblProgramadoProducto" runat="server"></asp:Label></td>
                                                    <td style="width: 92px; text-align: right; border-right-style: none;">
                                                        <asp:Label ID="lblTransferidoProducto" runat="server"></asp:Label></td>
                                                    <td style="width: 91px; text-align: right; border-right-style: none;">
                                                        <asp:Label ID="lblEjacutadoProducto" runat="server"></asp:Label></td>
                                                    <td style="width: 91px; text-align: right; border-right-style: none;">
                                                        <asp:Label ID="lblPorcProducto" runat="server"></asp:Label></td>
                                                    <td style="width: 91px; text-align: right; border-right-style: none;">
                                                        <asp:Label ID="lblIAFGProductos" runat="server"></asp:Label></td>
                                                    <td>&nbsp</td>
                                                </tr>
                                            </table>
                                            <asp:GridView ID="gvDetalle" runat="server" AutoGenerateColumns="False" Width="1350px" OnRowDataBound="RDB" ShowHeader="false">
                                                <Columns>
                                                    <asp:BoundField DataField="ENTIDAD_EJECUTORA" ItemStyle-Width="190px" ItemStyle-HorizontalAlign="left"></asp:BoundField>
                                                    <asp:BoundField DataField="NOMBRE" ItemStyle-Width="409.5px" ItemStyle-HorizontalAlign="left"></asp:BoundField>
                                                    <asp:BoundField DataField="TOTAL" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                                    <asp:BoundField DataField="PROG_ACUMULADO" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                                    <asp:BoundField DataField="MONTO_TRANSFERIDO" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                                    <asp:BoundField DataField="EJECUTADO" ItemStyle-Width="89px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                                    <asp:BoundField DataField="PORC" ItemStyle-Width="89px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:P0}"></asp:BoundField>
                                                    <asp:BoundField DataField="IAFG" ItemStyle-Width="89px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:P0}"></asp:BoundField>
                                                    <asp:BoundField DataField="OBSERVACION" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                                </Columns>
                                            </asp:GridView>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
 
</asp:Content>